@import '../../../../../assets/less/base/variables.less';
@import '../../../../../assets/less/base/newTabPageCommom.less';

.device-container {
  padding: 20px;
}
.device-backend-wrap {
  span {
    color: #5995d8;
    cursor: pointer;
  }
}
.parkinglot-device-top {
  padding-left: 32px;
  padding-right: 20px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: url('../../../../../assets//img/ic_parkinglot.svg') no-repeat left center;
  background-size: 24px 24px;
  .parkinglog-name {
    font-size: 14px;
    font-weight: bold;
    color: @black44;
  }
  .ip-mode {
    color: @grey99;
    display: flex;
    align-items: center;
    .el-switch {
      margin-left: 20px;
    }
  }
}

.device-bd {
  margin-top: 10px;
  .device-item {
    margin-bottom: 20px;
    .top-main-info {
      height: 40px;
      padding-left: 20px;
      padding-right: 60px;
      display: flex;
      align-items: center;
      background: @grayF2;
      position: relative;
      cursor: pointer;
      .info-item {
        margin-right: 20px;
        font-size: 14px;
        color: @darkGrey;
        width: 130px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
      .device-top-tabs {
        flex: 1;
        display: flex;
        .tab-item {
          height: 100%;
          font-size: 14px;
          color: @black;
          margin-right: 20px;
          display: flex;
          align-items: center;
          img {
            width: 20px;
            height: 20px;
            vertical-align: bottom;
            margin-right: 10px;
          }
        }
      }
      .show-detail {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        .el-icon-caret-bottom {
          font-size: 18px;
          color: @darkGrey;
          transition: transform 0.25s ease-in;
          transform-origin: center center;
          &.rotate180 {
            transform: rotate(-180deg);
          }
        }
      }
    }

    .device-item-bd {
      border-left: 1px solid @grayD8;
      border-right: 1px solid @grayD8;
      border-bottom: 1px solid @grayD8;
      padding: 10px;

      .device-item-bd-items {
        display: flex;
        flex-wrap: wrap;
      }
      .device-change-tips {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        color: @red;
        margin-bottom: 15px;
        margin-top: -10px;
        margin-left: -10px;
        margin-right: -10px;
        background-color: #fdf6ec;
        border-bottom: 1px solid #faecd8;
        color: #e6a23c;
        padding-left: 10px;
        .el-icon-warning {
          font-size: 16px;
        }
      }
      .device-item-bd-item {
        width: 288px;
        margin-right: 10px;
        margin-bottom: 15px;
        &:nth-child(4n) {
          margin-right: 0;
        }
        border: 1px solid @grayD8;
        border-radius: 4px;
        overflow: hidden;
        .top-title {
          background: @grayF2;
          text-align: center;
          font-size: 14px;
          color: @darkGrey;
          font-weight: bold;
          height: 32px;
          line-height: 32px;
          border-bottom: 1px solid @grayD8;
        }
        .item-bd {
          padding: 15px;
        }
      }
      .action {
        padding-left: 10px;
        .el-button--text {
          margin-right: 10px;
          padding-left: 5px;
          padding-right: 5px;
          &.del-icon {
            color: @red;
            &:hover,
            &:active,
            &:focus {
              color: darken(@red, 5%);
            }
          }
        }
        &.isEditing {
          padding-left: 0;
          display: flex;
        }
      }
    }
  }
}
